﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IDAL
{
    public interface IBlackListDAL
    {
        ////////////////////////////////////////////////////////////////
        //private int _BL_blackId;

        //private int _BL_userId;

        //private int _BL_limitTime;

        //private System.DateTime _BL_timeStart;

        //private System.Data.Linq.Binary _BL_reason;
        //////////////////////////////////////////////////////////////////

        /// <summary>
        /// 根据传入的ID判断一条数据是否存在
        /// </summary>       
        bool blackIdExists(int blackId);


        /// <summary>
        /// 根据传入的userId判断一条数据是否存在
        /// </summary>       
        bool userIdExists(int userId);


        /// <summary>
        /// 增加一条数据
        /// </summary>                
        bool Add(int userId, int limitTime, System.DateTime timeStart, string reason);


        /// <summary>
        /// 增加一条数据
        /// </summary>                
        bool Add(Model.BlackList blacklistitem);


        /// <summary>
        /// 更新一条数据
        /// </summary>             
        bool Update(int blackId, int userId, int limitTime, System.DateTime timeStart, string reason);


        /// <summary>
        /// 更新一条数据
        /// </summary>             
        bool Update(Model.BlackList blacklistitem);


        /// <summary>
        /// 根据传入的accountID删除一条数据
        /// </summary>
        bool blackIdDelete(int adminId);


        /// <summary>
        /// 根据传入的userId删除一条数据
        /// </summary>
        bool userIdDelete(int userId);


        /// <summary>
        /// 根据blackId得到一个对象实体
        /// </summary>
        Model.BlackList GetModel(int blackId);

    }
}
